<%--
  -	$Version: 0.1 $
  -	$Date: 2008-09-09 16:48:22 $
--%>
<%@ page language="java" errorPage="/error.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<decorator:usePage id="decoratedPage" />
<%
    // 获取是否显示菜单以及当前的步骤
    // that it shouldn't be.
    String sidebar = decoratedPage.getProperty("meta.showSidebar");
    if (sidebar == null) {
        sidebar = "true";
    }
    boolean showSidebar = Boolean.parseBoolean(sidebar);
    int currentStep = decoratedPage.getIntProperty("meta.currentStep");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title><fmt:message key="webapp.name" /> <fmt:message key="setup.title" />: <decorator:title /></title>
    <meta http-equiv="Cache-Control" content="no-store"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <link rel="shortcut icon" href="${ctx}/images/favicon.ico" type="image/x-icon"/>
    <style type="text/css" title="setupStyle" media="screen">
        @import "${ctx}/styles/setup.css";
    </style>
    <script type="text/javascript" src="${ctx}/scripts/prototype.js"></script>
    <script type="text/javascript" src="${ctx}/scripts/scriptaculous.js"></script>
    <script type="text/javascript" src="${ctx}/scripts/setup.js"></script>
	<script type="text/javascript" src="${ctx}/scripts/domLib.js"></script>
	<script type="text/javascript" src="${ctx}/scripts/domTT.js"></script>	
    <decorator:head />
</head>

<body onload="<decorator:getProperty property="body.onload" />">
<div id="page">
<!-- begin header --> 
    <div id="header" >
        <div id="jawa-logo">
            <a href="/"><img src="/images/login_logo.gif" alt="jawa" width="179" height="53" /></a>
        </div>
        <div id="jawa-version">
            <fmt:message key="webapp.name" />&nbsp;<fmt:message key="webapp.version" /><br/>
        </div>
        <div id="jawa-nav">
            <div id="jawa-nav-left"></div>
            <ul>
                <li><a><fmt:message key="setup.title"/></a></li>
            </ul>
            <div id="jawa-nav-right"></div>
         </div>
	     <div id="jawa-subnav">
	            &nbsp;
	     </div>
    </div>
<!-- end header --> 
	 <div id="sub">
	            <div id="sub-sidebar-box"> 
	 				<div id="sub-sidebar"> 
	 				 <ul id="sub-sidebar-progress"> 
	                      <li class="category"><fmt:message key="setup.progress.title" /></li> 
	                      <li><img src="${ctx}/images/jawa-setup-sidebar-progress<%= currentStep %>.gif" alt="" width="140" height="13" border="0"></li> 
							 <%  if (currentStep ==1	) { %>
								<li class="currentlink"> 
							 <%  } else {  if (currentStep > 1) { %>
								<li class="completelink"> 
	                         <%  }else{ %>
								<li > 
	                          <% }
							 }%>
						  <a href="${ctx}/setup/setup-env-check.jsp"><fmt:message key="setup.env.setting.title" /></a></li> 
	                       <%  if (currentStep ==2	) { %>
								<li class="currentlink"> 
							 <%  } else {  if (currentStep > 2) { %>
								<li class="completelink"> 
	                        		 <%  }else{ %>
								<li > 
	                          <% }
							 }%>
	<a href="${ctx}/setup/setup-language-settings.jsp"><fmt:message key="setup.language.setting.title" /></a></li> 
	                       <%  if (currentStep ==3	) { %>
								<li class="currentlink"> 
							 <%  } else {  if (currentStep > 3) { %>
								<li class="completelink"> 
	                        		 <%  } else{%>
								<li > 
	                          <% }
							 }%>
	<a href="${ctx}/setup/setup-datasource-settings.jsp"><fmt:message key="setup.datasource.setting.title" /></a></li> 
	                       <%  if (currentStep ==4	) { %>
								<li class="currentlink"> 
							 <%  } else {  if (currentStep > 4) { %>
								<li class="completelink"> 
	                        		 <%  } else{%>
								<li > 
	                          <% }
							 }%>
	<a href="${ctx}/setup/setup-mail-settings.jsp"><fmt:message key="setup.mail.setting.title" /></a></li> 
	                       <%  if (currentStep ==5	) { %>
								<li class="currentlink"> 
							 <%  } else {  if (currentStep > 5) { %>
								<li class="completelink"> 
	                        		 <%  } else{%>
								<li > 
	                          <% }
							 }%>
	<a href="${ctx}/setup/setup-admin-settings.jsp"><fmt:message key="setup.admin.setting.title" /></a></li> 
	       <%  if (currentStep ==6	) { %>
								<li class="currentlink"> 
							 <%  } else {  if (currentStep > 6) { %>
								<li class="completelink"> 
	                        		 <%  } else{%>
								<li > 
	                          <% }
							 }%>
	<a href="${ctx}/setup/setup-finish.jsp"><fmt:message key="setup.finish.title" /></a></li> 
	                 </ul>
					</div>
				</div>
	 </div>
<!-- begin content -->
    <div id="content">
        <div id="main">
            <decorator:body/>
        </div>
    </div>
<!-- end content -->
<!-- begin footer -->
    <div id="footer">
         <div class="footer-copyright">
            <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a> 
        </div>
    </div>
<!-- end footer -->
</div>
</body>
</html>